/*
 * @Description: 
 * @Author: shuliang
 * @Date: 2022-05-04 11:46:05
 * @LastEditTime: 2022-05-06 14:39:07
 * @LastEditors: shuliang
 */
import request from '/@/utils/request';

/**
 * 用户登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 * 登录api接口集合
 * @method signIn 用户登录
 * @method signOut 用户退出登录
 */
export function useLoginApi() {
	return {
		signIn: (params: object) => {
			return request({
				url: '/api/auth/token',
				method: 'post',
				data: params,
			});
		},
		signOut: (params: object) => {
			return request({
				url: '/user/signOut',
				method: 'post',
				data: params,
			});
		},
	};
}
